<script lang="ts" setup>
import { reactive } from 'vue'
const formList = reactive<FormList>([
  {
    label: '按钮（全部）',
    prop: 'checkbox4',
    value: [1],
    6: [2],
    type: 'checkboxGroup.button',
    data: [
      { label: '选项1', value: 1 },
      { label: '选项2', value: 2 },
      { label: '选项3', value: 3 }
    ],
    rule: [{ required: true, trigger: 'blur' }]
  }
])
const submitForm = (formData: any) => {
  console.log(formData)
}
</script>
<template>
  <XyAddForm isCard :formList="formList" @submit-form="submitForm" />
</template>
